.class public Lcom/waiqin365/base/login/CodeLoginActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/TextView;

.field private c:Lcom/waiqin365/base/login/e;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 1

    const v0, 0x7f0c0bd5

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c034f

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0350

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/base/login/CodeLoginActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/f;->a()Ljava/util/Observable;

    move-result-object v0

    const-string/jumbo v1, "closeLoginCaptureActivity"

    invoke-virtual {v0, v1}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/base/login/CodeLoginActivity;->back()V

    goto :goto_0

    :sswitch_2
    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->a:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/base/login/b/a/c;

    invoke-virtual {p0}, Lcom/waiqin365/base/login/CodeLoginActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "qrCode"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/base/login/b/a/c;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/base/login/b/c;

    iget-object v2, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->c:Lcom/waiqin365/base/login/e;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/base/login/b/c;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/login/b/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/c;->start()V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->showProgressDialog(Ljava/lang/String;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c034f -> :sswitch_2
        0x7f0c0350 -> :sswitch_1
        0x7f0c0bd5 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030091

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->setContentView(I)V

    iput-object p0, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->a:Landroid/content/Context;

    new-instance v0, Lcom/waiqin365/base/login/e;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/login/e;-><init>(Lcom/waiqin365/base/login/CodeLoginActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->c:Lcom/waiqin365/base/login/e;

    const v0, 0x7f0c034e

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/CodeLoginActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/login/CodeLoginActivity;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/base/login/CodeLoginActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0808b5

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const v2, 0x7f08061c

    invoke-virtual {p0, v2}, Lcom/waiqin365/base/login/CodeLoginActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-direct {p0}, Lcom/waiqin365/base/login/CodeLoginActivity;->a()V

    return-void
.end method
